$.ajaxPrefilter(function(options) {
    options.url = 'http://192.168.21.69:8060/admin' + options.url
    if (options.url.indexOf('/admin/') != -1) {
        options.headers = { "x-token": localStorage.getItem('token') || "" }
    }
    options.complete = function(res) {

        if (res.responseJSON.errno === 9998) {

            localStorage.removeItem('token')
            location.href = '/login.html'
        }
    }
})